#!/usr/bin/env python3

import rospy
from plumbing_pub_sub.msg import Person

def do_person(person: Person):
    rospy.loginfo('House data: %s, %d, %.2f', person.location, person.number, person.floor)

if __name__ == '__main__':
    rospy.init_node('AlexSub')
    sub = rospy.Subscriber('Alex', Person, do_person, queue_size=10)
    rospy.spin()
